package com.mycode.chapter02.processor;

import com.mycode.chapter02.server.Request;
import com.mycode.chapter02.server.Response;

import java.io.IOException;

// 静态资源处理器
public class StaticResourceProcessor implements Processor {

    @Override
    public void process(Request request, Response response) {
        try {
            response.sendStaticResource();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
